import request from '../utils/request'

export function login (data) {
  return request({
    url: '/index/login',
    data: data,
    method: 'POST'
  })
}

export function register (data) {
  return request({
    url: '/index/register',
    data: data,
    method: 'POST'
  })
}

export function loginOut () {
  return request({
    url: '/index/loginOut',
    method: 'get',
    headers: {
      token: 123456
    }
  })
}
